import request from '@/utils/request'

// 查询臭氧熏盖记录列表
export function listProductionProcessRecord(query) {
  return request({
    url: '/productionProcess/productionProcessRecord/list',
    method: 'get',
    params: query
  })
}

// 查询臭氧熏盖记录详细
export function getProductionProcessRecord(id) {
  return request({
    url: '/productionProcess/productionProcessRecord/' + id,
    method: 'get'
  })
}

// 新增臭氧熏盖记录
export function addProductionProcessRecord(data) {
  return request({
    url: '/productionProcess/productionProcessRecord',
    method: 'post',
    data: data
  })
}

// 修改臭氧熏盖记录
export function updateProductionProcessRecord(data) {
  return request({
    url: '/productionProcess/productionProcessRecord',
    method: 'put',
    data: data
  })
}
export function checkRptProOzoneRecord(data) {
  return request({
    url: '/productionProcess/productionProcessRecord/checkRptProOzoneRecord',
    method: 'put',
    data: data
  })
}
// 修改审核
export function updateCheck(data) {
  return request({
    url: '/productionProcess/productionProcessRecord/check',
    method: 'put',
    data: data
  })
}

// 删除臭氧熏盖记录
export function delProductionProcessRecord(id) {
  return request({
    url: '/productionProcess/productionProcessRecord/' + id,
    method: 'delete'
  })
}
// 获取品项
export function getXH() {
  return request({
    url: '/productionProcess/productionProcessRecord/getXH',
    method: 'get'
  })
}

// 获取品项
export function queryXH() {
  return request({
    url: '/productionProcess/productionProcessRecord/queryXH',
    method: 'get'
  })
}

// 查询当前所有未使用数量
export function queryWSY() {
  return request({
    url: '/productionProcess/productionProcessRecord/queryWSY',
    method: 'get'
  })
}
